﻿<script id="CM_Js_Buy_Items" type="text/html">
   <div style="width: 395px; float: left; height: auto; overflow: hidden">
    <fieldset>
        <legend>房源信息</legend>
        
        <div class="fitem">
            <span>房源编号：</span>
            <label>{{modelCMItem.HouseId}}</label>
            <span>合同编号：</span>
            <label style="width:120px;">{{modelCMItem.CMNumber}}</label>
        </div>
           
        <div class="fitem">
            <span>小区：</span>[{{modelArea.AreaName}}]
            {{modelBuilding.BuildingName}}
        </div>
        <div class="fitem">
            <span>栋号房号：</span>
            <label>{{modelHouse.Dong}}栋{{modelHouse.Fang}}</label>
            <span>产证日期：</span>
            <label>{{GetShortDate( modelCMItem.GetPropertyDate)}}</label>
        </div>
        <div class="fitem">
            <span>姓名：</span>
            <label>{{modelCMItem.HouseCustomerName}}</label>
            <span>电话：</span>
            {{modelCMItem.HouseTel}}
        </div>
        <div class="fitem">
            <span>身份证号：</span>
            {{modelCMItem.HousePersonID}}
        </div>
        <div class="fitem">
            <span>面积：</span>
            <label>{{modelCMItem.HouseArea}}平</label>
            <span>总价：</span>
            {{modelCMItem.TotalPrice}}万
        </div>
    </fieldset>
    <fieldset>
        <legend>客户信息</legend>
        <div class="fitem">
            <span>客户姓名：</span>
            {{modelCMItem.CustomerName}}
            <span>电话：</span>
            {{modelCMItem.CustomerTel}}
        </div>
        <div class="fitem">
            <span>身份证号：</span>
            {{modelCMItem.CustomerPersonID}}
        </div>
    </fieldset>
    <fieldset>
        <legend>签单人信息</legend>
        <div class="fitem">
            <span>姓名：</span>
            <label>{{modelCMItem.SignUser}}</label>
        </div>
        <div class="fitem">
            <span>电话：</span>
            <label>{{modelSignUser.UserMobile}}</label>
            <span>部门：</span>
            {{modelSignUser.DepartName}}
        </div>
        <div class="fitem">
            <span>合同录入：</span>
            <label>{{modelCMItem.AddUser}}</label>
            <span>录入时间：</span>
            <label>{{GetShortDate( modelCMItem.AddTime)}}</label>
        </div>
    </fieldset> 
    <fieldset>
        <legend>费用信息</legend>
        <div class="fitem">
            <span>付款方式：</span>
            <label style="width:100px">{{modelCMItem.PayTypeStr}}</label>
            <span>佣金支付：</span>
            <label>{{modelCMItem.ChargePayTypeStr}}</label>
        </div>
        <div class="fitem">
            <span>首付款：</span>
            <label>{{modelCMItem.FirstPayment}}万</label>
            <span>是否限购：</span>
            <label>{{modelCMItem.IsLimitBuy?"是":"否"}}</label>
        </div>
        <div class="fitem">
            <span>是否限贷：</span>
            <label>{{modelCMItem.IsLimitLoan==1?"是":"否"}}</label>
        </div>
        <div class="fitem">
            <span>卖方佣金：</span>
            <label>{{modelCMItem.ChargeHouse}}</label>
            <span>买方佣金：</span>
            <label>{{modelCMItem.ChargeCustomer}}</label>

        </div>
        <div class="fitem">
            <span>佣金：</span>
            <label>{{modelCMItem.ChargeTotal}}元</label>
            <span>累计收款：</span>
            <label name="lblTotalFee"></label>
            元
            <a href="javascript:;" name="reloadFeeTotal">刷新</a>
        </div>
        <div class="fitem">
            <span>费用类型：</span>
            {{each repFeeTypes as value i}}
            <label class="FeeTypeSubjects" FISubjectId="{{value.FISubjectId}}">{{value.Title}}</label>
            {{/each}}
            <a href="javascript:;" class="jsFunc" win="/FI/Js/Vouchers_List" arg0="{{modelCMItem.CMId}}" arg1="" id="linkFIVouchers">详情</a>
            <a href="javascript:;" class="jsFunc" win="/CM/Js/Buy_FeeTypes_List" arg0="{{modelCMItem.CMId}}">收款</a>
        </div>
    </fieldset>
</div>
<div style="width: 500px; float: left; height: auto">
    <fieldset>
        <legend>约定时间</legend>
        <div class="fitem">
            <span>约定还款：</span>
            <label>{{GetShortDate( modelCMItem.PlanRebackBank)}}</label>
            <span>约定过户：</span>
            <label>{{GetShortDate(modelCMItem.PlanTransfer)}}</label>
            <span>约定下款：</span>
            <label>{{GetShortDate(modelCMItem.PlanBankPay)}}</label>
        </div>
    </fieldset>
    <fieldset>
        <legend>备注跟进 <a href="javascript:;" class="jsFunc" win="/CM/Js/Buy_Follows_Add" arg0="0" arg1="{{modelCMItem.CMId}}">新增</a>
        </legend>

        <div style="height: 103px;" class="divFollow">
            <ul id="ulCmBuyFollow">
                {{each repFollow as value i}}
                    <li>【{{value.AddUser}}】
                        [{{value.FollowCMState}}]
                        [{{GetShortDate(value.AddTime)}}]
                        {{value.Follow}}</li>
                {{/each}}
            </ul>
        </div>
    </fieldset>
    <fieldset>
        <legend>跟单操作 <a href="javascript:;" name="linkStepsLogAdd" class="jsFunc" win="/CM/Js/Buy_Steps_Logs_Add" arg0="0" arg1="{{modelCMItem.CMId}}">跟单</a>

        </legend>
        <div style="height: 360px" class="divBuySteps">
            <ol id="ulCmSteps" style="padding:0;margin:0 20px 0 20px">
                {{each repSteps as value i}}
                    <li Operate="0" StepId="{{value.StepId}}" Description="{{value.Description}}">
                        [<span class="State"><a href="javascript:;" name="linkStepsLogAdds" arg0="0" arg1="{{modelCMItem.CMId}}">未开始</a></span>]【{{value.Title}}】
                        <span class="LogDescription"></span>
                    </li>
                {{/each}}
            </ol>
        </div>
    </fieldset>
   
</div>

</script>